package com.caikun.services;

import java.util.List;

import com.caikun.dao.BookshelfDao;
import com.caikun.entity.BookShelf;


public class BookshelfService {
	private BookshelfDao fdao;
	
	public BookshelfService(){
		fdao=new BookshelfDao();
	}
	public int save(BookShelf book){
		return fdao.save(book);
	}

	public int delete(int bookid){
		return fdao.delete(bookid);
	}
	public int update(BookShelf book){
		return fdao.modify(book);
	}
	public BookShelf findById(int bookid){
		return fdao.findById(bookid);
	}
	public List findByBookshelfId(int account){
		return fdao.findByBookshelfId(account);
	} 
}

